<template>
  <div style="text-align:center">
    <img id='programme' :src="data.jktjxdtbglj" style="height:1020px;width:710px" alt=""> &nbsp;
  </div>
</template>
<script>
import { getObj } from '@/api/cust/health/color'
export default {
  name: 'xcgct',
  data() {
    return {
      grjbxxid: '',
      jktjid: '',
      sfzh: '',
      tmcode: '',
      data: {}
    }
  },
  created() {
    this.grjbxxid = this.$route.query.grjbxxid
    this.jktjid = this.$route.query.id
    this.sfzh = this.$route.query.sfzh
    this.tmcode = this.$route.query.tmcode
    this.getObj()
  },
  mounted() {},
  methods: {
    getObj() {
      getObj({
        tmcode: this.tmcode
      }).then(res => {
        this.data = res.data.data
        console.log(this.validatenull(this.data))
        if (
          !this.validatenull(this.data) &&
          !this.validatenull(this.data.repjpgbase64)
        ) {
          this.data.jktjxdtbglj =
            'data:image/png;base64,' + this.data.repjpgbase64
        } else {
          this.data = {}
          this.data.jktjxdtbglj = ''
        }
      })
    }
  },
  computed: {},
  props: []
}
</script>
<style>
td {
  padding-left: 10px;
}
</style>
